package com.hoppinzq.service.http;

/**
 * @author ZhangQi
 */
public class test {

    public String getToken(){
        return "token";
    }

    public static void main(String[] args){
        //ExpressionParser
        HoppinHttpClient hoppinHttpClient = new HoppinHttpClient
                .BuilderClient()
                .encode("GBK")
                .charset("UTF-8")
                .build();
        ExampleApi exampleApi = HttpApiExecutorFactory.create(ExampleApi.class,hoppinHttpClient);
 //       String response = exampleApi.getData();
        String response = exampleApi.getData2("getGatewayMapping","{}","asd","xtt");
//        System.out.println(response);
//        System.err.println(hoppinHttpClient.getCostTime());

//        System.err.println(exampleApi.getId("{\"id\":123}"));

//        CodeQr qr=new CodeQr(1,new HashMap(0));
//        String json= JSON.toJSONString(qr);
//        System.err.println(exampleApi.createQr(json));


//        String str="fd7a9d2iZ0db5614c364bc60fdcf8a7cfba9==";
//        System.err.println(exampleApi.getQrState(str));

//        Map params=new HashMap();
//        params.put("item_id","f79662n7tR3e840e83f8d8130542580ef800==");
//        System.err.println(exampleApi.buffQrLogin(JSON.toJSONString(params)));


//        System.err.println(exampleApi.getQr());

//        System.err.println(exampleApi.getItem("dota2","830224",1,"default"
//        ,"",1,""));
    }
}

